import request from '@/utils/request'

//格栅设定数量
export function gsslCmd(query) {
  return request({
    url: '/nssc/modbuscmd/gssl',
    method: 'get',
    params: query
  })
}
//检测格栅孔数量
export function gskslCmd(query) {
  return request({
    url: '/nssc/modbuscmd/gsksl',
    method: 'get',
    params: query
  })
}
//手动模式(启动)
export function robotrunCmd(query) {
  return request({
    url: '/nssc/modbuscmd/robotrun',
    method: 'get',
    params: query
  })
}
//自由模式机器人(启动)
export function zymsrobotrunCmd(query) {
  return request({
    url: '/nssc/modbuscmd/zymsrobotrun',
    method: 'get',
    params: query
  })
}
//机器人 (暂停)
export function robotstopCmd(query) {
  return request({
    url: '/nssc/modbuscmd/robotstop',
    method: 'get',
    params: query
  })
}
//机器人模式设置
export function msszCmd(query) {
  return request({
    url: '/nssc/modbuscmd/mssz',
    method: 'get',
    params: query
  })
}
//自由模式机器人模式设置
export function zymsmsszCmd(query) {
  return request({
    url: '/nssc/modbuscmd/zymsmssz',
    method: 'get',
    params: query
  })
}
//机器人速度选择
export function jqrsdCmd(query) {
  return request({
    url: '/nssc/modbuscmd/jqrsd',
    method: 'get',
    params: query
  })
}
//自由模式机器人速度选择
export function jqrsdzymsCmd(query) {
  return request({
    url: '/nssc/modbuscmd/jqrsdzyms',
    method: 'get',
    params: query
  })
}
//前进
export function qjCmd(query) {
  return request({
    url: '/nssc/modbuscmd/qj',
    method: 'get',
    params: query
  })
}
//后退
export function htCmd(query) {
  return request({
    url: '/nssc/modbuscmd/ht',
    method: 'get',
    params: query
  })
}
//自由模式前进
export function zymsqjCmd(query) {
  return request({
    url: '/nssc/modbuscmd/zymsqj',
    method: 'get',
    params: query
  })
}
//自由模式后退
export function zymshtCmd(query) {
  return request({
    url: '/nssc/modbuscmd/zymsht',
    method: 'get',
    params: query
  })
}
//巡检点停留间隔时间
export function xjtlsjCmd(query) {
  return request({
    url: '/nssc/modbuscmd/xjtlsj',
    method: 'get',
    params: query
  })
}
//自动模式速度设定设置
export function xjsdCmd(query) {
  return request({
    url: '/nssc/modbuscmd/xjsd',
    method: 'get',
    params: query
  })
}
//定点视频
export function ddspCmd(query) {
  return request({
    url: '/nssc/modbuscmd/ddsp',
    method: 'get',
    params: query
  })
}
//连续视频
export function lxspCmd(query) {
  return request({
    url: '/nssc/modbuscmd/lxsp',
    method: 'get',
    params: query
  })
}
//自动模式启动
export function zdqdCmd(query) {
  return request({
    url: '/nssc/modbuscmd/zdqd',
    method: 'get',
    params: query
  })
}
//一键返航
export function yjfhCmd(query) {
  return request({
    url: '/nssc/modbuscmd/yjfh',
    method: 'get',
    params: query
  })
}
//目标位置
export function mbwzCmd(query) {
  return request({
    url: '/nssc/modbuscmd/mbwz',
    method: 'get',
    params: query
  })
}
//巡检任务保存
export function xjrwbcCmd(query) {
  return request({
    url: '/nssc/modbuscmd/xjrwbc',
    method: 'get',
    params: query
  })
}
//定时轮询--机器人数据
export function jqrdataCmd(query) {
  return request({
    url: '/nssc/modbuscmd/jqrconn',
    method: 'get',
    params: query
  })
}
//定时轮询--plc数据
export function plcdataCmd(query) {
  return request({
    url: '/nssc/modbuscmd/plcconn',
    method: 'get',
    params: query
  })
}
//定时轮询--plc、机器人通讯
export function connCmd(query) {
  return request({
    url: '/nssc/modbuscmd/conncmd',
    method: 'get',
    params: query
  })
}
//总巡检点数
export function zxjdsCmd(query) {
  return request({
    url: '/nssc/modbuscmd/zxjds',
    method: 'get',
    params: query
  })
}
//停留点位置
export function tldszCmd(query) {
  return request({
    url: '/nssc/modbuscmd/tldsz',
    method: 'get',
    params: query
  })
}
//放钩
export function fgCmd(query) {
  return request({
    url: '/nssc/modbuscmd/fg',
    method: 'get',
    params: query
  })
}
//收钩
export function sgCmd(query) {
  return request({
    url: '/nssc/modbuscmd/sg',
    method: 'get',
    params: query
  })
}
//上传文件
export function scwjCmd(data) {
  return request({
    url: '/nssc/modbuscmd/scwj',
    method: 'post',
    data: data
  })
}
//创建jqrplc连接
export function jqrplcconnCmd(query) {
  return request({
    url: '/nssc/conn/connjqrplc',
    method: 'get',
    params: query
  })
}
//创建plc连接
export function plcconnCmd(query) {
  return request({
    url: '/nssc/conn/connplc',
    method: 'get',
    params: query
  })
}
//创建jqr连接
export function jqropenCmd(query) {
  return request({
    url: '/nssc/conn/connjqr',
    method: 'get',
    params: query
  })
}
//关闭jqr连接
export function jqrclosedCmd(query) {
  return request({
    url: '/nssc/conn/colsejqrconn',
    method: 'get',
    params: query
  })
}
//关闭jqr所有连接
export function jqrclosedCmdALL(query) {
  return request({
    url: '/nssc/conn/colsejqrconnall',
    method: 'get',
    params: query
  })
}
//关闭plc连接
export function plclosedCmd(query) {
  return request({
    url: '/nssc/conn/colseplcconn',
    method: 'get',
    params: query
  })
}
//关闭ModbusMaster
export function closemasterCmd(query) {
  return request({
    url: '/nssc/conns/closemaster',
    method: 'get',
    params: query
  })
}
//轨道总长度
export function gdzcdCmd(query) {
  return request({
    url: '/nssc/modbuscmd/gdzcd',
    method: 'get',
    params: query
  })
}
//机器人断电
export function jqrddCmd(query) {
  return request({
    url: '/nssc/modbuscmd/jqrdd',
    method: 'get',
    params: query
  })
}
//升降机(升)
export function sjjsCmd(query) {
  return request({
    url: '/nssc/modbuscmd/sstsj',
    method: 'get',
    params: query
  })
}
//升降机(降)
export function sjjjCmd(query) {
  return request({
    url: '/nssc/modbuscmd/xjtsj',
    method: 'get',
    params: query
  })
}
//电动门开
export function ddmkCmd(query) {
  return request({
    url: '/nssc/modbuscmd/ddmk',
    method: 'get',
    params: query
  })
}
//电动门关
export function dmgCmd(query) {
  return request({
    url: '/nssc/modbuscmd/ddmg',
    method: 'get',
    params: query
  })
}
//变直轨
export function bzgCmd(query) {
  return request({
    url: '/nssc/modbuscmd/bzg',
    method: 'get',
    params: query
  })
}//变弯轨
export function bwgCmd(query) {
  return request({
    url: '/nssc/modbuscmd/bwg',
    method: 'get',
    params: query
  })
}//电动门暂停
export function ddmztCmd(query) {
  return request({
    url: '/nssc/modbuscmd/ddmzt',
    method: 'get',
    params: query
  })
}//升降机(停止)
export function sjjtzCmd(query) {
  return request({
    url: '/nssc/modbuscmd/sjjtz',
    method: 'get',
    params: query
  })
}//变轨停止
export function bgtzCmd(query) {
  return request({
    url: '/nssc/modbuscmd/bgtz',
    method: 'get',
    params: query
  })
}//1#AP电源供电
export function dygd1Cmd(query) {
  return request({
    url: '/nssc/modbuscmd/dygd1',
    method: 'get',
    params: query
  })
}//2#AP电源供电
export function dygd2Cmd(query) {
  return request({
    url: '/nssc/modbuscmd/dygd2',
    method: 'get',
    params: query
  })
}//1#AP电源停止
export function dygdtz1Cmd(query) {
  return request({
    url: '/nssc/modbuscmd/dygdtz1',
    method: 'get',
    params: query
  })
}//2#AP电源停止
export function dygdtz2Cmd(query) {
  return request({
    url: '/nssc/modbuscmd/dygdtz2',
    method: 'get',
    params: query
  })
}
//保存当前机器人id
export function insertrobotidCmd(query) {
  return request({
    url: '/nssc/robotstate/insertrobotid',
    method: 'get',
    params: query
  })
}
//保存当前机器人id
export function jqrbjCmd(query) {
  return request({
    url: '/nssc/alarm/jqrbj',
    method: 'get',
    params: query
  })
}
//前摄像头开始录像
export function kslxCmd(query) {
  return request({
    url: '/camera/handVideo/startVideoBefore',
    method: 'get',
    params: query
  })
}
//前摄像头停止录像
export function tzlspCmd(query) {
  return request({
    url: '/camera/handVideo/stopVideoBefore',
    method: 'get',
    params: query
  })
}
//后摄像头开始录像
export function hkslxCmd(query) {
  return request({
    url: '/camera/handVideo/startVideoAfter',
    method: 'get',
    params: query
  })
}
//后摄像头停止录像
export function htzlspCmd(query) {
  return request({
    url: '/camera/handVideo/stopVideoAfter',
    method: 'get',
    params: query
  })
}
//前摄像头校准
export function qsxtjzCmd(query) {
  return request({
    url: '/camera/TimingBbfore/synTimeBefore',
    method: 'get',
    params: query
  })
}
//后摄像头校准
export function hsxtjzCmd(query) {
  return request({
    url: '/camera/TimingAfter/synTimeAfter',
    method: 'get',
    params: query
  })
}
//当前机器人停留时间
export function tlsjrobotidCmd(query) {
  return request({
    url: '/nssc/robotstate/tlsjrobotid',
    method: 'get',
    params: query
  })
}
//前摄像头水印
export function qsyCmd(query) {
  return request({
    url: '/camera/watermark/fixWaterBefore',
    method: 'get',
    params: query
  })
}
//后摄像头水印
export function hsyCmd(query) {
  return request({
    url: '/camera/watermark/fixWaterAfter',
    method: 'get',
    params: query
  })
}
//是否管理员
export function isadminCmd() {
  return request({
    url: '/nssc/robotconfig/isadmin',
    method: 'get'
  })
}
  //电机1开
  export function dj1kCmd(query) {
    return request({
      url: '/nssc/modbuscmd/dj1kq',
      method: 'get',
      params: query
    })
  }
  //电机1关
  export function dj1gbCmd(query) {
    return request({
      url: '/nssc/modbuscmd/dj1gb',
      method: 'get',
      params: query
    })
  }
  //电机2开
  export function dj2kCmd(query) {
    return request({
      url: '/nssc/modbuscmd/dj2kq',
      method: 'get',
      params: query
    })
  }
  //电机2关
  export function dj2gbCmd(query) {
    return request({
      url: '/nssc/modbuscmd/dj2gb',
      method: 'get',
      params: query
    })
  }
  //摄像头1开
  export function sxt1kCmd(query) {
    return request({
      url: '/nssc/modbuscmd/sxt1kq',
      method: 'get',
      params: query
    })
  }
  //摄像头1关闭
  export function sxt1gbCmd(query) {
    return request({
      url: '/nssc/modbuscmd/sxt1gb',
      method: 'get',
      params: query
    })
  }
  //摄像头2开
  export function sxt2kCmd(query) {
    return request({
      url: '/nssc/modbuscmd/sxt2kq',
      method: 'get',
      params: query
    })
  }
  //摄像头2关闭
  export function sxt2gbCmd(query) {
    return request({
      url: '/nssc/modbuscmd/sxt2gb',
      method: 'get',
      params: query
    })
  }
  //照明灯1开
  export function zmd1kqCmd(query) {
    return request({
      url: '/nssc/modbuscmd/zmd1kq',
      method: 'get',
      params: query
    })
  }
  //照明灯1关
  export function zmd1gbCmd(query) {
    return request({
      url: '/nssc/modbuscmd/zmd1gb',
      method: 'get',
      params: query
    })
  }
  //照明灯2开
  export function zmd2kqCmd(query) {
    return request({
      url: '/nssc/modbuscmd/zmd2kq',
      method: 'get',
      params: query
    })
  }
  //检测ip是否通
  export function ippingCmd(ip) {
    return request({
      url: '/nssc/modbuscmd/ipping/'+ip,
      method: 'get'
    })
  }
